<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tab  &raquo; Add</title>
<link href="/backend/assets/css/style.css" rel="stylesheet" type="text/css" />
<link href="/backend/assets/css/discount.css" rel="stylesheet" type="text/css" />
<link href="/backend/scripts/jquery.ui/smoothness/jquery-ui-1.8.6.custom.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/backend/scripts/jquery.min.js"></script>
<script type="text/javascript" src="/backend/scripts/jquery-ui.custom.min.js"></script>
<script type="text/javascript" src="/backend/scripts/jquery.validate.min.js"></script>
<script type="text/javascript" src="/backend/scripts/common.min.js"></script>
<script type="text/javascript">
$(function(){
	$("form").validate();
	
	$('.datepicker').datepicker({
		dateFormat: 'dd-mm-yy',
		changeMonth: true,
		changeYear: true
	});
});
</script>
<!--$fix_ie-->
</head>
<body>
<div class="header">
  <h1>$header_title</h1>
</div>
<div class="c-repeat">
  <div class="c-b">
    <div class="container"> 
      <!--$header_html-->
      <div class="main">
        <div class="content">
          <form action="" method="post" enctype="multipart/form-data" class="validate">
            <fieldset>
              <ul class="list">
                <li>
                  <label for="title">Brand :</label>
                  <select name="brand_id" style="width:250px;">
			$brand_option
		  </select>
                </li>
		<li>
                  <label for="title">ซื้อครบ(ชิ้น) :</label>
		  <select name="ditem_value[]" style="width:50px;">
			$piece_option
		  </select>
                </li>
		<li style="display:none;">
                  <label for="title">ชิ้นที่ :</label>
		  <select name="ditem_value[]" style="width:50px;">
			$$order_option
		  </select>
                </li>
		<li>
                  <label for="title">ชิ้นสุดท้ายลด :</label>
		  <select name="ditem_value[]" style="width:50px;">
			$value_option
		  </select> %<input type="hidden" name="ditem_type[]" value="1" />
                </li>
                <li>
                  <label for="title">Start :</label>
                  <input name="date_start" type="text" id="date_start" value="$date_start" class="datepicker" style="width:500px;" />
                </li>
                <li>
                  <label for="title">Finish :</label>
                  <input name="date_finish" type="text" id="date_finish" value="$date_finish" class="datepicker" style="width:500px;" />
                </li>
                <li>
                  <label for="title">Detail :</label>
                  <textarea name="detail" id="detail" style="width:500px;"></textarea> 
                </li>
		</ul>
              <p class="btn">
		<input name="dtype_id" type="hidden" value="$dtype_id" />
                <input name="product_id" type="hidden" value="0" />
                <input name="color_id" type="hidden" value="0" />
                <input name="size_id" type="hidden" value="0" />
                <input name="season_id" type="hidden" value="0" />
                <input name="status" type="submit" class="button" id="status" value="Save" />
                <input type="reset" class="button" onclick="history.back(-1)" value="Cancel" />
              </p>
            </fieldset>
          </form>
        </div>
      </div>
      <br class="clear" />
    </div>
  </div>
</div>
<!--$footer_html-->
</body>
</html>
